package cn.dhnep.demo.service.impl;

import cn.dhnep.demo.pojo.Merchant;
import cn.dhnep.demo.mapper.MerchantMapper;
import cn.dhnep.demo.service.MerchantService;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dhn
 * @since 2021-09-06
 */
@Service
public class MerchantServiceImpl extends ServiceImpl<MerchantMapper, Merchant> implements MerchantService {

    @Resource
    private MerchantMapper merchantMapper;


    @Override
    public List<Merchant> selectPageList(Page page) {
        return merchantMapper.selectPageList(page);
    }
    @Override
    public Integer selectPageCount(Page page) {
        return merchantMapper.selectPageCount(page);
    }

    @Override
    public int merchantAdd(Merchant merchant) { return merchantMapper.merchantAdd(merchant); }

}
